Online Square Detection

نویسنده

  • Dmitry Kosolobov
چکیده

The online square detection problem is to detect the first occurrence of a square in a string whose characters are provided as input one at a time. Recall that a square is a string that is a concatenation of two identical strings. In this paper we present an algorithm solving this problem in O(n log σ) time and linear space on ordered alphabet, where σ is the number of different letters in the input string. Our solution is relatively simple and does not require much memory unlike the previously known online algorithm with the same working time. Also we present an algorithm working in O(n log n) time and linear space on unordered alphabet, though this solution does not outperform the previously known result with the same time bound.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Optimal Algorithm for Online Square Detection

A square is the concatenation of two identical non-empty strings. Let S be the input string which is given character by character. Let m be the (unknown) smallest integer such that the m-th prefix of S contains a square. The online square detection problem is to determine m as soon as the m-th character of S is read. The best previously known algorithm of the online square detection problem, du...

متن کامل

Online multiple people tracking-by-detection in crowded scenes

Multiple people detection and tracking is a challenging task in real-world crowded scenes. In this paper, we have presented an online multiple people tracking-by-detection approach with a single camera. We have detected objects with deformable part models and a visual background extractor. In the tracking phase we have used a combination of support vector machine (SVM) person-specific classifie...

متن کامل

BotOnus: an online unsupervised method for Botnet detection

Botnets are recognized as one of the most dangerous threats to the Internet infrastructure. They are used for malicious activities such as launching distributed denial of service attacks, sending spam, and leaking personal information. Existing botnet detection methods produce a number of good ideas, but they are far from complete yet, since most of them cannot detect botnets in an early stage ...

متن کامل

Online analysis of local field potentials for seizure detection in freely moving rats

Objective(s): Seizure detection during online recording of electrophysiological parameters is very important in epileptic patients. In the present study, online analysis of field potential recordings was used for detecting spontaneous seizures in epileptic animals.Materials and Methods: Epilepsy was induced in rats by pilocarpine injecti...

متن کامل

Online Detection of Hydrodynamic Changes in Fluidized Bed using Cross Average Diagonal Line

Online detection of hydrodynamics of gas-solid fluidized bed was characterized using pressure fluctuations by cross recurrence plot (CRP) and cross recurrence quantification analysis (CRQA). Experiments were conducted in a lab scale fluidized bed of various particle sizes 150 μm, 280 μm and 490 μm at different gas velocities. Firstly, pattern changes of cross recurrence plot were discussed and ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1411.2022  شماره 

صفحات  -

تاریخ انتشار 2014